<template>
	<view class="container">
		<view class="exam-title">
			<text>2022下半年嵌入式系统设计师重庆卷</text>
		</view>
		
		<view class="exam-info">
			<view class="info-section">
				<view class="info-item">
					<text class="name">年份</text>
					<text class="val">2022年</text>
				</view>
				<view class="info-item">
					<text class="name">试卷分数</text>
					<text class="val">75分</text>
				</view>
			</view>
			
			<view class="info-section">
				<view class="info-item">
					<text class="name">答题时间</text>
					<text class="val">150分钟</text>
				</view>
				<view class="info-item">
					<text class="name">合格分数</text>
					<text class="val">45分</text>
				</view>
			</view>
			
			<view class="info-section">
				<view class="info-item">
					<text class="name">已答题人数</text>
					<text class="val">3221人</text>
				</view>
			</view>
		</view>
		
		<view class="start-btn" @click="startExam">
			<text>开始考试</text>
		</view>
		
		<view class="exam-desc">
			<view class="section">
				<text>考试介绍</text>
			</view>
			
			<view class="desc-content">
				<rich-text :nodes="desc"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				desc: '<h4>一、题型介绍</h4><div><p><span style="font-size:16px;">1.本试卷的试题中共有 75 个空格，需要全部解答。</span></p><p><span style="font-size:16px;">2.每个空格 1 分，满分 75 分。</span></p></div><div><h4>二、考前必读</h4><div><p><span style="font-size:16px;">1.在答题卡的指定位置上正确写入你的姓名和准考证号，并用正规 2B 铅笔在你写入的准考证号下填涂准考证号。 </span></p><p><span style="font-size:16px;">2.每个空格对应一个序号，有 A、B、C、D 四个选项，请选择一个最恰当的选 项作为解答，在答题卡相应序号下填涂该选项。</span></p><p><span style="font-size:16px;">3.解答前务必阅读例题和答题卡上的例题填涂样式及填涂注意事项。解答时用正规 2B铅笔正确填涂选项，如需修改，请用橡皮擦干净，否则会导致不能正确评分 。</span></p></div></div>'
			};
		},
		methods: {
			startExam(){
				uni.navigateTo({
					url:'../examPaper/examPaper'
				})
			}
		}
	}
</script>

<style>
	page{
		background-color: #f5f5f5;
	}
</style>
<style lang="scss" scoped>
	.exam-title{
		font-size: 18px;
		display: flex;
		align-items: center;
		justify-content: center;;
		padding: 22rpx;
		background-color: #fff;
		color: #333;
		font-weight: bold;
	}
	
	.exam-info{
		width: 690rpx;
		background-color: #fff;
		margin-left: 30rpx;
		margin-top: 30rpx;
		box-sizing: border-box;
		border-radius: 15rpx;
		.info-section{
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1rpx solid rgba($color: #000000, $alpha: 0.05);
			padding: 22rpx;
			font-size: 28rpx;
			.name{
				margin-right: 10rpx;
				color: rgba($color: #000000, $alpha: 0.6);
			}
			.val{
				color: #333;
			}
		}
	}
	
	.start-btn{
		margin-top: 30rpx;
		width: 690rpx;
		margin-left: 30rpx;
		height: 88rpx;
		background-color: #53a8ff;
		color: #fff;
		border-radius: 12rpx;
		line-height: 88rpx;
		text-align: center;
	}
	.exam-desc{
		width: 690rpx;
		margin-left: 30rpx;
		background-color: #fff;
		margin-top: 30rpx;
		border-radius: 15rpx;
		.section{
			height: 80rpx;
			line-height: 80rpx;
			padding-left: 22rpx;
			border-bottom: 1rpx solid rgba($color: #000000, $alpha: 0.06);
		}
		.desc-content{
			padding: 22rpx;
		}
	}
</style>
